package com.xdhl.fu.common.core.constant.distribute;

/**
 * Redis常量
 *
 * @author 朱力维
 */
public class RedisConstants {

    /**
     * lua原子锁脚本
     */
    public static final String LUA_LOCK = "if redis.call('setnx',KEYS[1],ARGV[1]) == 1 then" +
            " redis.call('expire',KEYS[1],ARGV[2]) return 1 else return 0 end";

}
